package com.bonc.modules.business.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bonc.datasource.annotation.DataSource;
import com.bonc.modules.business.entity.TbWorkOederDistributionEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 工单派发码表
 *
 * @author feiniao
 * @date 2021-10-11 11:16:14
 */
@DataSource("data")
@Mapper
public interface TbWorkOederDistributionDao extends BaseMapper<TbWorkOederDistributionEntity> {

	List<Map<String, Object>> queryDistributionList();

	List<Map<String, Object>> getCountfromOrderDistribution(String date);

	List<TbWorkOederDistributionEntity> getOrderDistributionList();

	List<TbWorkOederDistributionEntity> getOrderDistributionAllList(String date);

	List<TbWorkOederDistributionEntity> getOrderDistributionDataFileList();

	/*List<TbWorkOederDistributionEntity> getOrderDistributionListByParam(TbWorkOederDistributionEntity tbWorkOederDistributionEntity);*/

	IPage<TbWorkOederDistributionEntity> getOrderDistributionListByParam(IPage<TbWorkOederDistributionEntity> page, @Param("order") Map<String, Object> order);

	IPage<TbWorkOederDistributionEntity> getSqOrderDistributionListByParam(IPage<TbWorkOederDistributionEntity> page, @Param("order") Map<String, Object> order);

	IPage<TbWorkOederDistributionEntity> getProblemOrderDistributionListByParam(IPage<TbWorkOederDistributionEntity> page, @Param("order") Map<String, Object> order);

	int updateById(TbWorkOederDistributionEntity tbWorkOederDistributionEntity);

}
